Asset

data class Asset(val id: String, val context: AssetContext?, val label: String? = null, val locale: String? = null, val tags: List<String>? = null, val groups: List<String>? = null, val active: Boolean = false, val meta: Map<String, String>? = null, val payload: AssetPayload = AssetPayload(), val credits: AssetCredits? = null, val license: AssetLicense? = null, val utm: AssetUTM? = null)

Single asset result of a findAssets query.

Constructors

Link copied to clipboard
constructor(id: String, context: AssetContext?, label: String? = null, locale: String? = null, tags: List<String>? = null, groups: List<String>? = null, active: Boolean = false, meta: Map<String, String>? = null, payload: AssetPayload = AssetPayload(), credits: AssetCredits? = null, license: AssetLicense? = null, utm: AssetUTM? = null)

Properties

Link copied to clipboard
val active: Boolean = false

If the asset is marked as active.

Link copied to clipboard

Context on how an asset was added and shall be used.

Link copied to clipboard
val credits: AssetCredits? = null

Credits for the creator of the asset.

Link copied to clipboard
val groups: List<String>? = null

Groups of the asset.

Link copied to clipboard
val id: String

Uniquely identifying asset ID.

Link copied to clipboard
val label: String? = null

The label of the asset. Used for description and tooltips.

Link copied to clipboard
val license: AssetLicense? = null

License for the asset. Overrides the asset source license if present.

Link copied to clipboard
val locale: String? = null

The locale of the label and tags.

Link copied to clipboard
val meta: Map<String, String>? = null

Asset-specific and custom meta information.

Link copied to clipboard

Structured information about the contained asset.

Link copied to clipboard
val tags: List<String>? = null

The tags of the asset. Used for filtering by tag and free-text search.

Link copied to clipboard
val utm: AssetUTM? = null

UTM parameters for the links inside the credits.